import { defineStore } from 'pinia'

export const useSystemStore = defineStore('system', {
  state: () => ({
    screenLayout: 'default',
    alarmLevel: 0,
    realtimeData: {}
  }),
  actions: {
    updateLayout(layout) {
      this.screenLayout = layout
    },
    handleAlarm(level) {
      this.alarmLevel = level
    }
  }
}) 